package usb;
import java.util.Scanner;

public class Test05 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int score=0;
        for (int i=1;i<=3;i++){
            System.out.println("请输入第"+i+"个学生的成绩");
            score = sc.nextInt();
            score+=score;
        }
        System.out.println("总成绩为"+score);
        System.out.println("平均分为"+score/3);
    }
}
